package top.revery.admin.controller_common;


import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import top.revery.admin.util.FeignServiceMapping;
import top.revery.api.config.UserPageData;

/**
 * <h1> ---  --- </h1>
 * Created by  revery.top jun
 * Date  2020-01-16 16:09
 */
@RestController
@RequestMapping("/common/user/")
public class UserService {

  /*  @Autowired
    private UserInfoDataSource uDataSource;*/

    @RequestMapping("/getList")
    public Object getHome(){
        UserPageData list = FeignServiceMapping.uDataSource.getList(1, 10);
        System.out.println(list.list);
        return list.list;
    }
}
